class List{
    constructor(){
        this.createHeader();
        this.createPosition();
    }
    createHeader(){
        new Header($("header"),$("#login-model-container"),$("#register-model-container"),"/list");
        //为了链式操作(调用完成以后把new List()返回,这样就可以继续调用list的方法)
        // return this;
    }
    createPosition(){
        new PositionList($("#listContainer"));
        new PositionAdd($("#add-model-container"));
    }
}
new List();
// new List().creatHeader().creatList();  return this;